package com.yxp423.ssmempl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxp423.ssmempl.bean.Overtime;
import com.yxp423.ssmempl.bean.User;
import com.yxp423.ssmempl.utils.base.AjaxResult;

public interface IOvertimeService {

    /**
     * 保存加班申请信息
     * @param overtime
     * @return
     */
    int saveOvertimeApply(Overtime overtime);

    IPage<Overtime> getMyAllOvertime(User user, Page page);

    /**
     * 获取审核人是我的申请
     * @param page
     * @return
     */
    IPage<Overtime> getReviewOvertime(User user,Page page);


    /**
     * 保存申请
     * @param overtime
     * @return
     */
    AjaxResult saveReview(Overtime overtime);

}
